<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>转变Unix时间戳为Julian Day计数</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.juliantojd.html">JulianToJD</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="book.datetime.html">Date/Time</a></div>
 <div class="up"><a href="ref.calendar.html">Calendar 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.unixtojd" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">unixtojd</h1>
  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">unixtojd</span> &mdash; <span class="dc-title">转变Unix时间戳为Julian Day计数</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.unixtojd-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">int</span> <span class="methodname"><strong>unixtojd</strong></span>
    ([ <span class="methodparam"><span class="type">int</span> <code class="parameter">$timestamp</code><span class="initializer"> = time()</span></span>
  ] )</div>

  <p class="para rdfs-comment">
   根据指定的Unix时间戳<em><code class="parameter">timestamp</code></em>，返回Julian天数。如果没有指定时间戳则返回当前日期的天数。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.unixtojd-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">timestamp</code></em></dt>

     <dd>

      <p class="para">
       一个用于转变的时间戳。
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.unixtojd-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   一个julian天数。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.unixtojd-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.jdtounix.html" class="function" rel="rdfs-seeAlso">jdtounix()</a> - 转变Julian Day计数为一个Unix时间戳</span></li>
   </ul>
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.juliantojd.html">JulianToJD</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="book.datetime.html">Date/Time</a></div>
 <div class="up"><a href="ref.calendar.html">Calendar 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
